package pers.linkong.asr.web;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
	
	@RequestMapping("/index")
	public String index() {
		return "Index";
	}
	
	@RequestMapping("/main")
	public String main(HttpSession session) {
		Object tid = session.getAttribute("loginTid");
		if(tid==null || tid=="" || tid == "null"){
			return "Login";
		}
		return "Main";
	}
	
	@RequestMapping("/detection")
	public String detection() {
		return "Detection";
	}
}
